package com.peas.platform.module.icims.expenditure.expenses.adapter.repository.po;

import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 报账单支出信息
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_expenditure_reimbursement_pay`")
public class ExpenditureReimbursementPayPo extends BasePo {

    // 报账单ID
    // （报账单表）外键
    @Comment(value = "报账单ID")
    @TableField(value = "`expenditure_reimbursement_id`", jdbcType = JdbcType.BIGINT)
    private Long expenditureReimbursementId;

    // 支付方式
    // 字典取值:ExpenditurePay
    @Comment(value = "支付方式", dictType = "ExpenditurePay")
    @Size(max = 20, message = "支付方式不能超过20个字符")
    @TableField(value = "`pay_type`", jdbcType = JdbcType.VARCHAR)
    private String payType;

    // 结算方式
    // 字典取值:ExpenditureSettlement
    @Comment(value = "结算方式", dictType = "ExpenditureSettlement")
    @Size(max = 20, message = "结算方式不能超过20个字符")
    @TableField(value = "`settle_type`", jdbcType = JdbcType.VARCHAR)
    private String settleType;

    // 支付账户
    @Comment(value = "支付账户")
    @Size(max = 200, message = "支付账户不能超过200个字符")
    @TableField(value = "`pay_account`", jdbcType = JdbcType.VARCHAR)
    private String payAccount;

    // 收付标识
    // 枚举取值:ExpenditurePay
    @Comment(value = "收付标识", enumType = "ExpenditurePay")
    @Size(max = 20, message = "收付标识不能超过20个字符")
    @TableField(value = "`pay`", jdbcType = JdbcType.VARCHAR)
    private String pay;

    // 金额
    @Comment(value = "金额")
    @TableField(value = "`amount`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amount;

    // 摘要
    @Comment(value = "摘要")
    @TableField(value = "`pay_summary`", jdbcType = JdbcType.CLOB)
    private String paySummary;

}
